package com.example.dormitory_system.service;

import com.example.dormitory_system.domain.dto.student.ChangeRoomDTO;
import com.example.dormitory_system.domain.dto.sysuser.ChangeRoomUpdateDTO;
import com.example.dormitory_system.domain.dto.sysuser.RoomUpdateDTO;
import com.example.dormitory_system.domain.enetiy.Room;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dormitory_system.domain.vo.student.ChangeRoomVO;
import com.example.dormitory_system.domain.vo.student.MaintainVO;
import com.example.dormitory_system.domain.vo.sysuser.RoomListVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author keenan
* @description 针对表【tb_room(寝室表)】的数据库操作Service
* @createDate 2025-03-26 15:31:07
*/
public interface RoomService extends IService<Room> {

    int updateRoom(ChangeRoomDTO changeRoomDTO);

    List<ChangeRoomVO> listRoom(Long studentId, int pageNum, int pageSize);

    ChangeRoomVO getRoomResult(Long studentId, Long changeRoomId);

    int sysUpdateRoom(ChangeRoomUpdateDTO changeRoomUpdateDTO);

    void importRooms(MultipartFile file) throws IOException;

    int updateRoom(RoomUpdateDTO roomUpdateDTO);

    List<RoomListVO> sysListRoom(Integer pageNum, Integer pageSize);

    List<ChangeRoomVO> listchangeRoom(Integer status, String applyname, String number, int pageNum, int pageSize);
}